<?
mysql_connect( "127.0.0.1", "rsif", "rsif" ) or die('Couldnt connect');

mysql_select_db('rsiftest') or die('Could not select database');

$field = $_GET["field"];

$query = "SELECT field FROM tbl_test WHERE field=" . $field;

$result = mysql_query( $query )  or die('Query failed: ' . mysql_error());;

$aux = "false";

while ($line = mysql_fetch_array($result)) {
	$aux = "true";
}

	echo $aux . "</br>";

?>
